package com.deng.common.dao;

import java.math.BigDecimal;
import java.util.List;

import com.deng.common.vo.DispenseOrganizationVo;
import com.deng.common.vo.HisOrganizationVo;
import com.deng.common.vo.OrganizationVo;

public interface IOrganization {

	public void synchronizeDispenseAndOrganization();
	
	public List<OrganizationVo> getAllOrganization();
	public OrganizationVo updateOrganizationBaseBonus(OrganizationVo vo);
	public OrganizationVo getOrganizationById(int id);
	
	public OrganizationVo updateOrganizationBaseBonusFunction(OrganizationVo vo);
	
	
	public List<OrganizationVo> addOneAndGetAllOrganization(OrganizationVo vo);
	public List<OrganizationVo> deleteOneAndGetAllOrganization(OrganizationVo vo);
	public List<OrganizationVo> updateOneAndGetAllOrganization(OrganizationVo vo);

	
	public List<OrganizationVo> getAllOrganizationByFullName(int is_leaf);
	public List<OrganizationVo> getTopOrganization();
	public List<HisOrganizationVo> getHisCode(int id);
	public void addHisCode(HisOrganizationVo vo);
	public void deleteHisCode(HisOrganizationVo vo);
	
	
	public List<DispenseOrganizationVo> getAllDispenseBonus(String stat_time_str);

	public void updateDispenseBaseBonusFunction(DispenseOrganizationVo vo);
	public void updateDispenseRelatedId(OrganizationVo vo,int add);
	public List<DispenseOrganizationVo> getAllDispenseOrganization();
	public List<DispenseOrganizationVo> addAndGetDispenseOrganization(DispenseOrganizationVo vo);
	public List<DispenseOrganizationVo> updateAndGetDispenseOrganization(DispenseOrganizationVo vo);
	
	public List<OrganizationVo> getMyGuikou(String guikouId);
	
	public List<OrganizationVo> getLeafOrganization();
}
